factory
ng
See $provide.factory().
$provide.factory()
name – {string} –
service name
providerFunction – {Function} –
Function for creating new instance of the service.